-- GENERATED SPELL FOR [Protean Horror] --


function spell0_20865(pUnit, Event) --@Toothy Bite,n/a--
pUnit:FullCastSpellOnTarget(36612,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20865', 575, 1)
end

function Sorts_20865(pUnit, Event)
local choix_sorts_20865 = math.random(0, 0)
if choix_sorts_20865 == 0 then
pUnit:RegisterEvent('spell0_20865', 1, 1)
end
end

function mob20865_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20865', math.random(1500, 3000), 1)
end

function mob20865_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20865_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20865_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20865, 1, 'mob20865_Action')
RegisterUnitEvent(20865, 2, 'mob20865_Leave')
RegisterUnitEvent(20865, 3, 'mob20865_Kill')
RegisterUnitEvent(20865, 4, 'mob20865_Die')
